package com.bank.controller.alluser;

import com.bank.entity.alluser.dk_sq;
import com.bank.service.alluser.AlluserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("/alluser")
public class AlluserController {

    @Autowired
    private AlluserService alluserService;
    @RequestMapping("/listalluser")
    public String listalluser(Map<String,Object> map){
       List<dk_sq> alllist=alluserService.list();
        System.out.println(alllist);
        map.put("list",alllist);
        return "alluser/alllist";
    }
}
